<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>数据字典-大正</title>
</head>

<body>
	<span style="font-weight: bold; color:#F93; aligh: center; font-size: 20px">金价表-修改</span>
	
	
		<!--<s:hidden name="action" value="adddd"></s:hidden>
		<s:hidden name="optype" value="#request.optype"></s:hidden> -->
		<s:if test='#request.operation == "new"'>
		<s:form action="goldpriceaction?action=add">
			<s:textfield name="sid" label='编号' readOnly="true" value="系统自动生成"></s:textfield>
			<s:textfield name="sdate" label='日期' readOnly="true" value="%{#request.curdate}"></s:textfield>
			<s:textfield name="sprice" label='价格'></s:textfield>
			<s:textfield name="snote" label='备注'></s:textfield>
			<s:submit value="提交"></s:submit>
		</s:form>
		</s:if>
		<s:else>
			<s:form action="goldpriceaction?action=mod">
				<s:textfield name="sid" label='编号' readOnly="true" value="%{#request.ddrecord.id}"></s:textfield>
				<s:textfield name="sdate" label='日期' readOnly="true" >
					<s:param name="value"><s:date name="%{#request.ddrecord.date}" format="yyyy-MM-dd"/></s:param> 
				</s:textfield>
				<s:textfield name="sprice" label='价格' value="%{#request.ddrecord.price}"></s:textfield>
				<s:textfield name="snote" label='备注' value="%{#request.ddrecord.note}"></s:textfield>
				<s:submit value="提交"></s:submit>
			</s:form>
		</s:else>
</body>
</html>
